package com.command.pattern.service.impl;

import com.command.pattern.service.Order;
import com.command.pattern.service.Stock;

/**
 * @author chenchen
 * @description
 * @date 2023/11/20 10:53
 */
public class SellStock implements Order {

    private Stock abcStock;

    public SellStock(Stock abcStock) {
        this.abcStock = abcStock;
    }

    @Override
    public void execute() {
        abcStock.sell();
    }
}
